package com.zeng.ssm.service.support.async.example;

import com.zeng.ssm.service.support.async.AsyncTaskContext;
import com.zeng.ssm.service.support.async.BaseAsyncTaskExecutor;
import org.springframework.stereotype.Component;

/**
 * 异步任务-执行器-示例
 *
 * @author zengwanlin
 * @date 2023-04-04T18:25
 */
@Component
public class StdOutExecutor extends BaseAsyncTaskExecutor {

    @Override
    protected void doExecute(AsyncTaskContext context) {
        StdOutParam param = context.getParam(StdOutParam.class);
        System.out.println("aaaaaaaaaaaaaabbbbbbbbbbbbbb");
        context.setRetMsg("打印成功");
    }

}
